package crp.core.student.app;

import crp.core.student.domain.services.StudentSearcher;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;

@ApplicationScoped
public class StudentService {
    private final Instance<StudentSearcher> searcher;

    @Inject
    public StudentService(Instance<StudentSearcher> searcher) {
        this.searcher = searcher;
    }

    public StudentSearcher searcher() {
        return searcher.get();
    }
}
